import { QueryListVo } from 'src/vo/query.list.vo';
import { QueryVo } from 'src/vo/query.vo';
import { ApiProperty } from '@nestjs/swagger';

export class AccessVo extends QueryVo {
  @ApiProperty({ description: '标题名称' })
  title: string;

  @ApiProperty({ description: '路由名称' })
  name: string;

  @ApiProperty({ description: '小图标' })
  icon?: string;

  @ApiProperty({ description: 'url地址' })
  path: string;

  @ApiProperty({ description: '父模块ID' })
  parentId: number;

  @ApiProperty({ description: '排序' })
  sortId: number;

  @ApiProperty({ description: '描述' })
  description?: string;

  @ApiProperty({ description: '类型' })
  type?: string;
}

export class AccessListVo extends QueryListVo {
  @ApiProperty({ description: '返回数据列表', type: AccessVo, isArray: true })
  data: AccessVo[];
}
